package com.biz.primus.ms.member.trans;

import com.biz.primus.ms.member.dao.po.MemberFavourite;
import com.biz.primus.ms.member.dao.ro.MemberFavouriteRo;
import com.google.common.base.Function;
import org.springframework.beans.BeanUtils;

/**
 * po转ro
 * @author jun.liu
 * @date 2017年10月23日
 * @reviewer
 * @see
 */
public class MemberFavouriteToMemberFavouriteRo implements Function<MemberFavourite, MemberFavouriteRo> {
    @Override
    public MemberFavouriteRo apply(MemberFavourite po) {
        MemberFavouriteRo ro = new MemberFavouriteRo();
        if (po != null) {
            BeanUtils.copyProperties(po, ro);
        }
        return ro;
    }
}
